Wayland: Only send smooth scroll events for tablet tools
authorLuca Bacci <luca.bacci982@gmail.com>
Fri, 6 May 2022 11:45:06 +0000 (13:45 +0200)
committerCarlos Garnacho <carlosg@gnome.org>
Tue, 24 May 2022 12:30:49 +0000 (12:30 +0000)
gdk/wayland/gdkdevice-wayland.c

index 2446bddab3b0c7b7ae111c881e3544f3603fc274..322ee2d88b42881045ed0294231f7f464194f9a4 100644 (file)
@@ -3999,17 +3999,6 @@ tablet_tool_handle_wheel (void                      *data,
                                 GDK_SCROLL_UNIT_WHEEL);
 
   _gdk_wayland_display_deliver_event (seat->display, event);
-
-  /* Send discrete event */
-  event = gdk_scroll_event_new_discrete (tablet->pointer_info.focus,
-                                         tablet->stylus_device,
-                                         tablet->current_tool->tool,
-                                         tablet->pointer_info.time,
-                                         device_get_modifiers (tablet->logical_device),
-                                         clicks > 0 ? GDK_SCROLL_DOWN : GDK_SCROLL_UP,
-                                         TRUE);
-
-  _gdk_wayland_display_deliver_event (seat->display, event);
 }
 
 static void